package com.myjar.excel;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public enum ExcelType {

    XLS() {
        @Override
        public Workbook workbook() {
            return new HSSFWorkbook();
        }
    },
    XLSX() {
        @Override
        public Workbook workbook() {
            return new XSSFWorkbook();
        }
    },;

    public abstract Workbook workbook();


}
